import foo from './src/foo.vue'
import router from 'router'
import VueProgressBar from 'vue-progressbar'
//import Navigation from 'vue-navigation'







// 全局注册组件

Vue.component('custom-header', require('components/custom-header'))
Vue.component('custom-searchHeader', require('components/custom-searchHeader'))
Vue.component('custom-list', require('components/custom-list'))
Vue.component('custom-dataHeader', require('components/custom-dataHeader'))
Vue.component('global', require('components/global'))
Vue.component('clinical', require('components/clinical'))
Vue.component('patent', require('components/patent'))
Vue.component('literature', require('components/literature'))
Vue.component('filterSort', require('components/filterSort'))
Vue.component('aob', require('components/aob'))

// 安装全局配置module
//weex.registerModule('user', {
//getUser (callBack) {
//  callBack({
//    userId: '312790',
//    token: 'b636f162-ef52-47a1-aeb6-76323f294a79'
//  })
//}
//})

Vue.use(VueProgressBar, {
  thickness: '5px',
  color: '#00bf11',
  autoRevert: true,
  location: 'top',
  inverse: false
})
//启用缓存
//Vue.use(Navigation, {router});



new Vue({
  el: '#root',
  router,
  template: '<foo/>',
  components: {
    foo
  }
})